import pandas as pd
A = pd.read_csv('/Users/lz/PycharmProjects/tianchi/diming_ner/BERT-NER-Pytorch-master/datasets/cnertianchi/final_test.txt',
                sep='\x01', header=None)
A.columns = ['ord', 'sentence']


A['cls'] = A['sentence'].apply(lambda x: ' '.join(['I-ORG' for i in range(len(x))]))
A.to_csv('/Users/lz/PycharmProjects/tianchi/diming_ner/BERT-NER-Pytorch-master/res/002_ddl_addr_parsing_runid.txt', header=False, index=False, sep='\x01')